package com.sky.service.impl;

import com.sky.entity.Employee;
import com.sky.mapper.EmployeeMapper;
import com.sky.service.ShiroUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShiroUserServiceImpl implements ShiroUserService {
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public Employee getById(Long id) {
        Employee employee = employeeMapper.getById(id);
        if (employee != null) {
            employee.setPassword("*****");
        }
        return employee;
    }

}
